package com.pw.lit.service.impl;

import com.pw.lit.bean.Blog;
import com.pw.lit.bean.BlogExample;
import com.pw.lit.mapper.BlogMapper;
import com.pw.lit.service.BlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("blogService")
public class BlogServiceImpl implements BlogService {

    @Autowired
    private BlogMapper blogMapper;

    @Override
    public int countByExample(BlogExample example) {

        return blogMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(BlogExample example) {

        return blogMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer bid) {
        return blogMapper.deleteByPrimaryKey(bid);
    }

    @Override
    public int insert(Blog record) {
        return blogMapper.insert(record);
    }

    @Override
    public int insertSelective(Blog record) {
        return blogMapper.insertSelective(record);
    }

    @Override
    public List<Blog> selectByExample(BlogExample example) {
        return blogMapper.selectByExample(example);
    }

    @Override
    public Blog selectByPrimaryKey(Integer bid) {

        return blogMapper.selectByPrimaryKey(bid);
    }

    @Override
    public int updateByExampleSelective(Blog record, BlogExample example) {

        return blogMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(Blog record, BlogExample example) {
        return blogMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(Blog record) {
        return blogMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Blog record) {
        return blogMapper.updateByPrimaryKey(record);
    }
}